package com.whu;

/**
 * @author DELL
 */
public class Teacher {
    public String name;
    public Student student;


    public void setStudent(Student student) {
        this.student = student;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void teach(){
        System.out.println(name+"老师上课中···");
        student.study();
    }

}
